@extends('common.en_base-master')

@section('html-head')
{{--    <link href="{{url('css/admin/pagenum.css')}}" rel="stylesheet" />--}}
@endsection

@section('html-body')
    <div class="neibanner" style="@if(!empty($classifyName))background:url({{$classifyName->img_url}}) @endif no-repeat 50%; background-size: cover;"></div>
    <div class="probox" style="background: #ffffff !important;">
        <div class="proxiala">
            <div class="proxiala_chakan">
                see more
            </div>
            <div class="proxiala_menu">
                @if(count($environmentalClassifyList) > 0)
                    @foreach($environmentalClassifyList as $environmentalClassify)
                        @if ($environmentalClassify->id == $classifyId)
                            <a class="on" href="{{route('Home.Index.enEnvironmentalList')}}?classify_id={{$environmentalClassify->id}}">{{$environmentalClassify->name}}</a>
                        @else
                            <a href="{{route('Home.Index.enEnvironmentalList')}}?classify_id={{$environmentalClassify->id}}">{{$environmentalClassify->name}}</a>
                        @endif
                    @endforeach
                @endif
                <div class="clear"></div>
            </div>
        </div>
        <div class="probox_left">
            <div class="protitle" style="background-color: #43a906;">
                <div style="text-align:center;">
                    <div class="protitle1">
                        @if(!empty($classifyName))
                            {{$classifyName->name}}
                        @else
                            environmental
                        @endif
                    </div>
                </div>
            </div>
            <div class="proleft_xiala">
                @if(count($environmentalClassifyList) > 0)
                    @foreach($environmentalClassifyList as $environmentalClassify)
                        @if ($environmentalClassify->id == $classifyId)
                            <a class="on" href="{{route('Home.Index.enEnvironmentalList')}}?classify_id={{$environmentalClassify->id}}">{{$environmentalClassify->name}}</a>
                        @else
                            <a href="{{route('Home.Index.enEnvironmentalList')}}?classify_id={{$environmentalClassify->id}}">{{$environmentalClassify->name}}</a>
                        @endif
                    @endforeach
                @endif
                <div class="clear"></div>
            </div>
        </div>
        <div class="probox_right">
            <div class="proboxline">
                <div class="proboxline_box">
                    @if(count($environmentalList) > 0)
                        @foreach($environmentalList as $environmental)
                            <a href="{{route('Admin.Home.enEnvironmentalDetail')}}?id={{$environmental->id}}" title=" {{$environmental->desc}}">
                                <div class="proimg_img">
                                    <img src="{{$environmental->img_url}}" />
                                </div>
                                <div class="proimg_title">
                                    {{$environmental->title}}
                                </div>
                                <div class="proimg_time" >
{{--                                    {{date_format($product->updated_at,'Y-m-d')}}--}}
                                    {{$environmental->desc}}
                                </div>
                                <div class="clear"></div> </a>
                        @endforeach
                    @endif

                    <div class="clear"></div>
                </div>
            </div>
        </div>
        <div class="pages" style="text-align: center;">
            <?php echo $environmentalList->appends(['classify_id' => $classifyId])->render(); ?>
        </div>
        <div class="clear"></div>
    </div>
@endsection

